<script>
var win = null;

function openWin() {
  win = window.open();
}

function navigate(url) {
  setTimeout(function() {
    win.location = url;
  }, 10);
}
</script>
